package com.hxkj.domain.po;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
* 
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-05-21 17:59:26
*/
public class Site  implements Serializable {


    private static final long serialVersionUID = 6522148558153494294L;
    // 站点id
    private Long siteId;
    // 站点名称
    private String siteName;
    //一级站点分类
    private Integer parentType;
    // 站点类型
    private Integer siteType;
    // 排序编号
    private Long sortNumber;
    // 创建时间
    private Long createTime;
    // 删除标识
    private Byte delTag;
    // 站点Log图片地址
    private String imgUrl;
    // 站点状态
    private Byte siteStatus;
    // 备用字段
    private String comment;

    // 模糊查询关键字
    private String keyword;

    // 站点id  string数组
    private String siteIds;

    // 用户id(用于登录用户展示站点信息)
    private Long userId;

    //功能库功能的ID字符串
    private String ids;

    //站点可分配的功能
    private List<Long> children;
    //站点一级类型名称
    private String parentTypeName;

    // 文章详情 静态资源路径
    private String manuscriptPath;

    public String getManuscriptPath() {
        return manuscriptPath;
    }

    public void setManuscriptPath(String manuscriptPath) {
        this.manuscriptPath = manuscriptPath;
    }

    public String getParentTypeName() {
        return parentTypeName;
    }

    public void setParentTypeName(String parentTypeName) {
        this.parentTypeName = parentTypeName;
    }

    public List<Long> getChildren() {
        return children;
    }

    public void setChildren(List<Long> children) {
        this.children = children;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public String getSiteName() {
    return siteName;
    }

    public void setSiteName(String siteName) {
    this.siteName = siteName;
    }

    public Integer getSiteType() {
    return siteType;
    }

    public void setSiteType(Integer siteType) {
    this.siteType = siteType;
    }

    public Long getSortNumber() {
    return sortNumber;
    }

    public void setSortNumber(Long sortNumber) {
    this.sortNumber = sortNumber;
    }

    public Long getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Long createTime) {
    this.createTime = createTime;
    }

    public Byte getDelTag() {
    return delTag;
    }

    public void setDelTag(Byte delTag) {
    this.delTag = delTag;
    }

    public Long getSiteId() {
    return siteId;
    }

    public void setSiteId(Long siteId) {
    this.siteId = siteId;
    }

    public String getSiteIds() {
        return siteIds;
    }

    public void setSiteIds(String siteIds) {
        this.siteIds = siteIds;
    }
    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Byte getSiteStatus() {
        return siteStatus;
    }

    public void setSiteStatus(Byte siteStatus) {
        this.siteStatus = siteStatus;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getParentType() {
        return parentType;
    }

    public void setParentType(Integer parentType) {
        this.parentType = parentType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Site)) return false;
        Site site = (Site) o;
        return Objects.equals(getSiteId(), site.getSiteId()) &&
                Objects.equals(getSiteName(), site.getSiteName()) &&
                Objects.equals(getParentType(),site.getParentType()) &&
                Objects.equals(getSiteType(), site.getSiteType()) &&
                Objects.equals(getSortNumber(), site.getSortNumber()) &&
                Objects.equals(getCreateTime(), site.getCreateTime()) &&
                Objects.equals(getDelTag(), site.getDelTag()) &&
                Objects.equals(getImgUrl(), site.getImgUrl()) &&
                Objects.equals(getSiteStatus(), site.getSiteStatus()) &&
                Objects.equals(getComment(), site.getComment()) &&
                Objects.equals(getKeyword(), site.getKeyword()) &&
                Objects.equals(getSiteIds(), site.getSiteIds()) &&
                Objects.equals(getUserId(), site.getUserId());
    }

    @Override
    public int hashCode() {

        return Objects.hash(getSiteId(), getSiteName(), getParentType(), getSiteType(), getSortNumber(), getCreateTime(), getDelTag(), getImgUrl(), getSiteStatus(), getComment(), getKeyword(), getSiteIds(), getUserId());
    }
}
